home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume25 / wacco / patch03 next >
Encoding:
Text File  |  1991-11-11  |  7.0 KB  |  240 lines

  1. Newsgroups: comp.sources.misc
  2. From: parag@hpsdeb.sde.hp.com (Parag Patel)
  3. Subject:  v25i038:  wacco - A C++ LL parser generator, Patch03
  4. Message-ID: <1991Nov10.194121.22204@sparky.imd.sterling.com>
  5. X-Md4-Signature: 163644f1dc6211dfb39bc5e12762fe0a
  6. Date: Sun, 10 Nov 1991 19:41:21 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: parag@hpsdeb.sde.hp.com (Parag Patel)
  10. Posting-number: Volume 25, Issue 38
  11. Archive-name: wacco/patch03
  12. Environment: C++, UNIX
  13. Patch-To: wacco: Volume 19, Issue 88-93
  14.  
  15. I forgot to include some patches in the 1.3 release, so here's a small
  16. patch to bring wacco up to version 1.4.  A few typos are fixed, a
  17. problem in io.C is fixed, and wacco compiles and runs with C++ 3.0 now.
  18.  
  19.  From the README:
  20.  
  21. 1.4     forgot some diffs in 1.3 - this version fixes all the missing bits
  22.         extern for yylex() in io.C is removed
  23.         a few typos are fixed
  24.         minor fix in defs.h for strfree() so it works with C++ 3.0
  25.  
  26.     -- Parag
  27.  
  28. ---- Cut Here and feed the following to sh ----
  29. #!/bin/sh
  30. # This is a shell archive (produced by shar 3.49)
  31. # To extract the files from this archive, save it to a file, remove
  32. # everything above the "!/bin/sh" line above, and type "sh file_name".
  33. #
  34. # made 10/22/1991 17:44 UTC by parag@hp-ses
  35. # Source directory /u1/parag/tools/wacco
  36. #
  37. # existing files will NOT be overwritten unless -c is specified
  38. #
  39. # This shar contains:
  40. # length  mode       name
  41. # ------ ---------- ------------------------------------------
  42. #   4846 -rw-r--r-- patch-1.3-1.4
  43. #
  44. # ============= patch-1.3-1.4 ==============
  45. if test -f 'patch-1.3-1.4' -a X"$1" != X"-c"; then
  46.     echo 'x - skipping patch-1.3-1.4 (File already exists)'
  47. else
  48. echo 'x - extracting patch-1.3-1.4 (Text)'
  49. sed 's/^X//' << 'SHAR_EOF' > 'patch-1.3-1.4' &&
  50. *** tmp/README    Tue Jul 23 17:49:50 1991
  51. --- README    Tue Oct 22 10:38:43 1991
  52. ***************
  53. *** 1,4
  54. ! $Header: README,v 1.11 91/07/23 18:49:49 hmgr Exp $
  55. X  
  56. X  Copyright (c) 1991 by Parag Patel.  All Rights Reserved.
  57. X  You can do what you wish with this as long as
  58. X
  59. --- 1,4 -----
  60. ! $Header: README,v 1.13 91/10/22 11:38:42 hmgr Exp $
  61. X  
  62. X  Copyright (c) 1991 by Parag Patel.  All Rights Reserved.
  63. X  You can do what you wish with this as long as
  64. ***************
  65. *** 77,79
  66. X      some typos fixed in wacco.doc example but NOT in wacco.doc.{iw,ps}
  67. X  
  68. X  1.3    fixed bug in gen.C which wouldn't dump user code bigger than 1024 bytes
  69. X
  70. --- 77,84 -----
  71. X      some typos fixed in wacco.doc example but NOT in wacco.doc.{iw,ps}
  72. X  
  73. X  1.3    fixed bug in gen.C which wouldn't dump user code bigger than 1024 bytes
  74. + 1.4    forgot some diffs in 1.3 - this version fixes all the missing bits
  75. +     extern for yylex() in io.C is removed
  76. +     a few typos are fixed
  77. +     minor fix in defs.h for strfree() so it works with C++ 3.0
  78. *** tmp/defs.h    Fri May 17 15:29:54 1991
  79. --- defs.h    Fri Sep 27 15:13:39 1991
  80. ***************
  81. *** 1,5
  82. X  // Copyright (c) 1991 by Parag Patel.  All Rights Reserved.
  83. ! // $Header: defs.h,v 1.15 91/05/17 16:29:55 hmgr Exp $
  84. X  
  85. X  #include <stdio.h>
  86. X  #include <stdlib.h>
  87. X
  88. --- 1,5 -----
  89. X  // Copyright (c) 1991 by Parag Patel.  All Rights Reserved.
  90. ! // $Header: defs.h,v 1.16 91/09/13 15:30:32 hmgr Exp $
  91. X  
  92. X  #include <stdio.h>
  93. X  #include <stdlib.h>
  94. ***************
  95. *** 18,24
  96. X  #if FREE_TAKES_CHAR
  97. X  inline void strfree(const char *s) { if (s != NULL) free((char *)s); }
  98. X  #else
  99. ! inline void strfree(const char *s) { if (s != NULL) free((const void *)s); }
  100. X  #endif
  101. X  
  102. X  // for large switch statements
  103. X
  104. --- 18,24 -----
  105. X  #if FREE_TAKES_CHAR
  106. X  inline void strfree(const char *s) { if (s != NULL) free((char *)s); }
  107. X  #else
  108. ! inline void strfree(const char *s) { if (s != NULL) free((void *)s); }
  109. X  #endif
  110. X  
  111. X  // for large switch statements
  112. *** tmp/io.C    Fri Feb 22 15:08:32 1991
  113. --- io.C    Mon Aug 26 16:59:03 1991
  114. ***************
  115. *** 1,5
  116. X  // Copyright (c) 1991 by Parag Patel.  All Rights Reserved.
  117. ! static const char rcs_id[] = "$Header: io.C,v 1.13 91/02/22 16:08:20 hmgr Exp $";
  118. X  
  119. X  #include "defs.h"
  120. X  #include "toks.h"
  121. X
  122. --- 1,5 -----
  123. X  // Copyright (c) 1991 by Parag Patel.  All Rights Reserved.
  124. ! static const char rcs_id[] = "$Header: io.C,v 1.14 91/08/26 17:59:01 hmgr Exp $";
  125. X  
  126. X  #include "defs.h"
  127. X  #include "toks.h"
  128. ***************
  129. *** 30,36
  130. X  
  131. X  
  132. X  extern char yytext[];
  133. - extern int yylex();
  134. X  
  135. X  static char filename[100];
  136. X  static FILE *fp = stdin;
  137. X
  138. --- 30,35 -----
  139. X  
  140. X  
  141. X  extern char yytext[];
  142. X  
  143. X  static char filename[100];
  144. X  static FILE *fp = stdin;
  145. *** tmp/main.C    Fri Feb 22 15:06:41 1991
  146. --- main.C    Wed Jul 31 15:27:58 1991
  147. ***************
  148. *** 1,5
  149. X  // Copyright (c) 1991 by Parag Patel.  All Rights Reserved.
  150. ! static const char rcs_id[] = "$Header: main.C,v 1.22 91/02/22 16:05:39 hmgr Exp $";
  151. X  
  152. X  #include "version.C"
  153. X  
  154. X
  155. --- 1,5 -----
  156. X  // Copyright (c) 1991 by Parag Patel.  All Rights Reserved.
  157. ! static const char rcs_id[] = "$Header: main.C,v 1.23 91/07/31 16:27:57 hmgr Exp $";
  158. X  
  159. X  #include "version.C"
  160. X  
  161. ***************
  162. *** 370,376
  163. X      check();
  164. X  
  165. X      if (w_numerrors > 0)
  166. !     quit("Not generating any w_output files");
  167. X  
  168. X      if (statonly)
  169. X      {
  170. X
  171. --- 370,376 -----
  172. X      check();
  173. X  
  174. X      if (w_numerrors > 0)
  175. !     quit("Not generating any output files");
  176. X  
  177. X      if (statonly)
  178. X      {
  179. *** tmp/version.C    Tue Jul 23 17:49:52 1991
  180. --- version.C    Tue Oct 22 10:34:28 1991
  181. ***************
  182. *** 1,3
  183. X  // Copyright (c) 1991 by Parag Patel.  All Rights Reserved.
  184. X  
  185. ! static char *const whatid = "@(#)wacco 1.3 (23 July 1991)";
  186. X
  187. --- 1,3 -----
  188. X  // Copyright (c) 1991 by Parag Patel.  All Rights Reserved.
  189. X  
  190. ! static char *const whatid = "@(#)wacco 1.4 (22 October 1991)";
  191. *** tmp/wacco.doc    Mon May 20 19:28:08 1991
  192. --- wacco.doc    Wed Aug 14 09:45:33 1991
  193. ***************
  194. *** 1,5
  195. X  Copyright (c) 1991 by Parag Patel.  All Rights Reserved.
  196. ! << $Header: wacco.doc,v 1.27 91/05/20 20:28:05 hmgr Exp $ >>
  197. X  
  198. X  << Please see the wacco(1) man page for details on its usage. >>
  199. X  << Only the grammar format is described here.                 >>
  200. X
  201. --- 1,5 -----
  202. X  Copyright (c) 1991 by Parag Patel.  All Rights Reserved.
  203. ! << $Header: wacco.doc,v 1.28 91/08/14 10:45:30 hmgr Exp $ >>
  204. X  
  205. X  << Please see the wacco(1) man page for details on its usage. >>
  206. X  << Only the grammar format is described here.                 >>
  207. ***************
  208. *** 190,196
  209. X  may be used wherever {} blocks are allowed.
  210. X  
  211. X  
  212. ! The empty rule may not be implicitly specified is in yacc, but must
  213. X  be defined with the special "[]" symbol:
  214. X  
  215. X      null: [] ;
  216. X
  217. --- 190,196 -----
  218. X  may be used wherever {} blocks are allowed.
  219. X  
  220. X  
  221. ! The empty rule may not be implicitly specified as in yacc, but must
  222. X  be defined with the special "[]" symbol:
  223. X  
  224. X      null: [] ;
  225. SHAR_EOF
  226. chmod 0644 patch-1.3-1.4 ||
  227. echo 'restore of patch-1.3-1.4 failed'
  228. Wc_c="`wc -c < 'patch-1.3-1.4'`"
  229. test 4846 -eq "$Wc_c" ||
  230.     echo 'patch-1.3-1.4: original size 4846, current size' "$Wc_c"
  231. fi
  232. exit 0
  233. exit 0 # Just in case...
  234. -- 
  235. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  236. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  237. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  238. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  239.